// pages/component/navigation-bar/index.js
Component({
  properties: {
    back: Boolean,
    delta: {
      type: Number,
      value: 1
    }
  },
  data: {
    statusBarHeight: 0
  },
  options: {
    addGlobalClass: true,
    multipleSlots: true
  },
  externalClasses: ['custom-class', 'title-class'],
  lifetimes: {
    attached() {
      const info = wx.getSystemInfoSync()

      this.setData({
        statusBarHeight: info.statusBarHeight
      })
    }
  },
  methods: {
    goBack() {

      wx.navigateBack(this.data.delta)


    }
  }
})